package cn.tedu.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface DemoMapper {
    @Select("SELECT 'HelloWorld!'")
    String hello();

    String test();

    @Delete("DELETE FROM ${table} WHERE id=#{id}")
    Integer deleteById(@Param("table") String table, @Param("id") Integer id);
}
